package com.justgame.project.generator.properties;

import com.justgame.project.generator.utils.AppContextUtils;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import java.util.List;

@Getter
@Setter
@Component
@DependsOn("appContextUtils")
@ConfigurationProperties(prefix = "code.generator.global")
public class GlobalProperties {
    private String author;
    private String applicationNameFormat;
    private String formatSymbol = "%s";
    private Boolean enableAutoGenerator = false;
    private String projectPath = System.getProperty("user.dir") + "/JustGame_Serve";
    private String afterProjectOperationPath = "/just-game-cloud-core/just-game-service";
    private String operationPackage = "/com/justgame/project/service";
    private String afterProjectDomainPath = "/just-game-cloud-core/just-game-service-api";
    private String afterProjectSupportPath = "/just-game-cloud-support";
    private String domainPackage = "/com/justgame/project/service";
    private String sqlFilePath;
    private String superEntityClass;
    private String sqlFileName = "mysql.sql";
    private List<String> superEntityFields;
}
